//
//  NetService.h
//  quickBatchManager
//
//  Created by jack on 15/11/26.
//  Copyright © 2015年 jack. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
@interface NetService : NSObject


-(void) post:(NSString*) path params:(NSDictionary *)params success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success fail:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) fail;

-(void)post:(NSString *)path params:(NSDictionary *)params filedName:(NSString*)filedName images:(NSArray*)images success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success fail:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) fail;

-(void)post:(NSString *)path params:(NSDictionary *)params filedName:(NSString*)filedName imageName:(NSString *)imageName image:(UIImage*)image success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success fail:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) fail;


-(void)post:(NSString *)path params:(NSDictionary *)params filedName:(NSString*)filedName dataName:(NSString *)dataName data:(NSData*)data success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success fail:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) fail;


+(NSString *) getMessage:(id) response;
+(id) getBody:(id)response;
+(NSInteger) getStatusCode:(id)response;
+(id) getBodyForKey:(NSString*)key andData:(id)response;
-(void)stopAllOperations;
@end
